/**
 * 店家条件查询商品数据信息，包括分页
 */
import OrderByDTO from '@/api/entity/OrderByDTO'

export default class GoodDetailQueryDTO extends OrderByDTO {
  static instance () {
    return new GoodDetailQueryDTO()
  }

  /**
   * 设置searchType
   * @param {Number|String} searchType
   */
  setSearchType (searchType) {
    if (searchType) {
      this.searchType = searchType
    }
  }

  /**
   * 设置search
   * @param {Array<String|Number>} search
   */
  setSearch (search) {
    if (search) {
      this.search = search
    }
  }

  /**
   * 添加search
   * @param {String|Number} search
   */
  addSearch (search) {
    if (search) {
      if (this.search) {
        this.search.push(search)
      } else {
        this.search = [search]
      }
    }
  }

  /**
   * goodId
   * @param {Array<String|Number>} goodId
   */
  setGoodId (goodId) {
    if (goodId) {
      this.goodId = goodId
    }
  }

  /**
   * goodId
   * @param {String|Number} goodId
   */
  addGoodId (goodId) {
    if (goodId) {
      if (this.goodId) {
        this.goodId.push(goodId)
      } else {
        this.goodId = [goodId]
      }
    }
  }

  /**
   * 设置groupId
   * @param {Array<String|Number>} groupId
   */
  setGroupId (groupId) {
    if (groupId) {
      this.groupId = groupId
    }
  }

  /**
   * 添加groupId
   * @param {String|Number} groupId
   */
  addGroupId (groupId) {
    if (groupId) {
      if (this.groupId) {
        this.groupId.push(groupId)
      } else {
        this.groupId = [groupId]
      }
    }
  }

  /**
   * 设置groupName
   * @param {Array<String|Number>} groupName
   */
  setGroupName (groupName) {
    if (groupName) {
      this.groupName = groupName
    }
  }

  /**
   * 添加groupName
   * @param {String|Number} groupId
   */
  addGroupName (groupName) {
    if (groupName) {
      if (this.groupName) {
        this.groupName.push(groupName)
      } else {
        this.groupName = [groupName]
      }
    }
  }

  /**
   * 设置storeId
   * @param {Array<String|Number>} storeId
   */
  setStoreId (storeId) {
    if (storeId) {
      this.storeId = storeId
    }
  }

  /**
   * 添加storeId
   * @param {String|Number} storeId
   */
  addStoreId (storeId) {
    if (storeId) {
      if (this.storeId) {
        this.storeId.push(storeId)
      } else {
        this.storeId = [storeId]
      }
    }
  }

  /**
   * 设置storeName
   * @param {Array<String|Number>} storeName
   */
  setStoreName (storeName) {
    if (storeName) {
      this.storeName = storeName
    }
  }

  /**
   * 添加storeName
   * @param {String|Number} storeName
   */
  addStoreName (storeName) {
    if (storeName) {
      if (this.storeName) {
        this.storeName.push(storeName)
      } else {
        this.storeName = [storeName]
      }
    }
  }

  /**
   * 设置goodCategoryId
   * @param {Array<String|Number>} goodCategoryId
   */
  setGoodCategoryId (goodCategoryId) {
    if (goodCategoryId) {
      this.goodCategoryId = goodCategoryId
    }
  }

  /**
   * 添加goodCategoryId
   * @param {String|Number} goodCategoryId
   */
  addGoodCategoryId (goodCategoryId) {
    if (goodCategoryId) {
      if (this.goodCategoryId) {
        this.goodCategoryId.push(goodCategoryId)
      } else {
        this.goodCategoryId = [goodCategoryId]
      }
    }
  }

  /**
   * 设置goodName
   * @param {Array<String|Number>} goodName
   */
  setGoodName (goodName) {
    if (goodName) {
      this.goodName = goodName
    }
  }

  /**
   * 添加goodName
   * @param {String|Number} goodName
   */
  addGoodName (goodName) {
    if (goodName) {
      if (this.goodName) {
        this.goodName.push(goodName)
      } else {
        this.goodName = [goodName]
      }
    }
  }

  /**
   * 设置createGoodUserId
   * @param {Array<String|Number>} createGoodUserId
   */
  setCreateGoodUserId (createGoodUserId) {
    if (createGoodUserId) {
      this.createGoodUserId = createGoodUserId
    }
  }

  /**
   * 添加createGoodUserId
   * @param {String|Number} createGoodUserId
   */
  addCreateGoodUserId (createGoodUserId) {
    if (createGoodUserId) {
      if (this.createGoodUserId) {
        this.createGoodUserId.push(createGoodUserId)
      } else {
        this.createGoodUserId = [createGoodUserId]
      }
    }
  }

  /**
   * 设置checkGoodUserId
   * @param {Array<String|Number>} checkGoodUserId
   */
  setCheckGoodUserId (checkGoodUserId) {
    if (checkGoodUserId) {
      this.checkGoodUserId = checkGoodUserId
    }
  }

  /**
   * 添加checkGoodUserId
   * @param {String|Number} checkGoodUserId
   */
  addCheckGoodUserId (checkGoodUserId) {
    if (checkGoodUserId) {
      if (this.checkGoodUserId) {
        this.checkGoodUserId.push(checkGoodUserId)
      } else {
        this.checkGoodUserId = [checkGoodUserId]
      }
    }
  }

  /**
   * 设置goodState
   * @param {Array<String|Number>} goodState
   */
  setGoodState (goodState) {
    if (goodState) {
      this.goodState = goodState
    }
  }

  /**
   * 添加goodState
   * @param {String|Number} goodState
   */
  addGoodState (goodState) {
    if (goodState) {
      if (this.goodState) {
        this.goodState.push(goodState)
      } else {
        this.goodState = [goodState]
      }
    }
  }

  /**
   * 设置createGoodTimeBegin
   * @param {Number|String} createGoodTimeBegin
   */
  setCreateGoodTimeBegin (createGoodTimeBegin) {
    if (createGoodTimeBegin) {
      this.createGoodTimeBegin = createGoodTimeBegin
    }
  }

  /**
   * 设置createGoodTimeEnd
   * @param {Number|String} createGoodTimeEnd
   */
  setCreateGoodTimeEnd (createGoodTimeEnd) {
    if (createGoodTimeEnd) {
      this.createGoodTimeEnd = createGoodTimeEnd
    }
  }

  /**
   * 设置checkGoodTimeBegin
   * @param {Number|String} checkGoodTimeBegin
   */
  setCheckGoodTimeBegin (checkGoodTimeBegin) {
    if (checkGoodTimeBegin) {
      this.checkGoodTimeBegin = checkGoodTimeBegin
    }
  }

  /**
   * 设置checkGoodTimeEnd
   * @param {Number|String} checkGoodTimeEnd
   */
  setCheckGoodTimeEnd (checkGoodTimeEnd) {
    if (checkGoodTimeEnd) {
      this.checkGoodTimeEnd = checkGoodTimeEnd
    }
  }

  /**
   * 设置pushGoodTimeBegin
   * @param {Number|String} pushGoodTimeBegin
   */
  setPushGoodTimeBegin (pushGoodTimeBegin) {
    if (pushGoodTimeBegin) {
      this.pushGoodTimeBegin = pushGoodTimeBegin
    }
  }

  /**
   * 设置pushGoodTimeEnd
   * @param {Number|String} pushGoodTimeEnd
   */
  setPushGoodTimeEnd (pushGoodTimeEnd) {
    if (pushGoodTimeEnd) {
      this.pushGoodTimeEnd = pushGoodTimeEnd
    }
  }

  /**
   * 设置minPriceBegin
   * @param {Number|String} minPriceBegin
   */
  setMinPriceBegin (minPriceBegin) {
    if (minPriceBegin) {
      this.minPriceBegin = minPriceBegin
    }
  }

  /**
   * 设置minPriceEnd
   * @param {Number|String} minPriceEnd
   */
  setMinPriceEnd (minPriceEnd) {
    if (minPriceEnd) {
      this.minPriceEnd = minPriceEnd
    }
  }

  /**
   * 设置maxPriceBegin
   * @param {Number|String} maxPriceBegin
   */
  setMaxPriceBegin (maxPriceBegin) {
    if (maxPriceBegin) {
      this.maxPriceBegin = maxPriceBegin
    }
  }

  /**
   * maxPriceEnd
   * @param {Number|String} maxPriceEnd
   */
  setMaxPriceEnd (maxPriceEnd) {
    if (maxPriceEnd) {
      this.maxPriceEnd = maxPriceEnd
    }
  }

  /**
   * goodScoreBegin
   * @param {Number|String} goodScoreBegin
   */
  setGoodScoreBegin (goodScoreBegin) {
    if (goodScoreBegin) {
      this.goodScoreBegin = goodScoreBegin
    }
  }

  /**
   * 设置goodScoreEnd
   * @param {Number|String} goodScoreEnd
   */
  setGoodScoreEnd (goodScoreEnd) {
    if (goodScoreEnd) {
      this.goodScoreEnd = goodScoreEnd
    }
  }
}
